package net.studou.tools;

import org.apache.log4j.Logger;

public class STDLogger {

	private Logger logger;
	
	private STDLogger(Class<?> clazz) {
		logger = Logger.getLogger(clazz);
	}

	public static STDLogger getLogger(Class<?> clazz) {
		return new STDLogger(clazz);
	}

	public void debug(Throwable throwable){
		logger.debug("", throwable);
	}
	
	public void error(Throwable throwable){
		logger.error("", throwable);
	}
	
	public void info(Throwable throwable){
		logger.info("", throwable);
	}
	
	public void warn(Throwable throwable){
		logger.warn("", throwable);
	}
}
